<?php

use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;

class UpdateUserAuthor extends Migration
{
    public function up()
    {
        Schema::table('author', function (Blueprint $table) {
            $table->string("remark", 255);
            $table->date("birthday")->nullable();
            $table->tinyInteger("gender", false, true)->default(0);
            $table->tinyInteger("profession", false, true)->default(0);
        });
    }

    public function down()
    {
        Schema::table('author', function (Blueprint $table) {
        });
    }
}
